package com.jinxinol.basic.system.mapper;

import java.util.List;
import java.util.Map;

import com.jinxinol.basic.system.domain.SysPosition;
import com.jinxinol.basic.system.domain.SysRight;
import com.jinxinol.basic.system.domain.SysRole;
import com.jinxinol.basic.system.domain.SysUser;
import com.jinxinol.core.common.IMapper;

/**
 * 用户表
 */
public interface SysUserMapper extends IMapper<SysUser> {
	/**
	 *  查询所有用户
	 */
	public List<SysUser> find(SysUser sysUser)throws Exception;
	/**
	 * 用户登录
	 * */
	SysUser userLogin(Map<String, Object> map)throws Exception;
	
	/**
	 * 查询用户角色
	 * */
	List<SysRole> selectUserRole(SysUser user)throws Exception;
	
	/**
	 * 查询用户职务
	 * */
	List<SysPosition> selectUserPosition(SysUser user)throws Exception;
	
	/**
	 * 查询用户权限
	 * */
	List<SysRight> selectUserRight(SysUser user)throws Exception;
	
	List<SysRole> selectOtherRole(SysUser user) throws Exception;
	
}

